package com.xuanmiao.smsback.dao.mapper;

import com.xuanmiao.smsback.domain.qo.UserInfoQO;
import com.xuanmiao.smsback.dao.model.UserInfoDO;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {


    Integer count(UserInfoQO userInfoQO);

    List<UserInfoDO> queryUserInfo(UserInfoQO userInfoQO);

    UserInfoDO getById(@Param("id") Integer id);

    int update(UserInfoDO convert);

    void add(UserInfoDO convert);

    int insertSelective(UserInfoDO userInfoDO);

    int updateByPrimaryKeySelective(UserInfoDO record);

    List<UserInfoDO> selectByQO(UserInfoQO userInfoQO);

    List<UserInfoDO> selectAll();

    Integer selectIdByQO(UserInfoQO userInfoQO);

    Integer existAccountNo(@Param("businessNo")String businessNo);



    /**
     *@Description:     查詢狀態是激活的所有信息
     *@Param:  * @param
     *@Author: shenJianKang
     *@date: 2019/9/11 14:58
     */
    List<UserInfoDO> queryAllActivateInfo();

}
